<template>
  <div style="margin: 0 auto">
    <a-button class="btn-class-no-border" style="padding: 0" type="link" @click="editClick()">编辑</a-button>

    <!-- 新增 -->
    <spring-frame ref="springFrame" @editClickOk="editClickOk" :row_record="record"></spring-frame>
  </div>
  
</template>
<script >
import springFrame from '@/views/workforceManagement/shiftList/components/springFrame'
export default {
    components: { 
        springFrame, 
    },
    props: {
        record: {
            type: Object,
            default: () => {
                {
                }
            },
        },
    },
    // props: {
    //     record: Object,
    // },
    
    methods: {
        editClick(){
            console.log(this.$parent)
            // this.$parent.editClick(this.record)
            // this.$emit('handeClick', this.record)

            
            this.$refs.springFrame.show('edit') 
             
        },
        editClickOk(){
            
        }
    }
} 
</script>
